package com.woniuxy.classteacher;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 李英勇
 * @date 2020/7/16 - 15:31
 */
@SpringBootApplication
@EnableEurekaClient //向注册中心注册自己
@EnableFeignClients(basePackages = "com.woniuxy.commons.service") // 扫描feign接口所在的包
@MapperScan("com.woniuxy.classteacher.mapper")
public class ClassTeacherApplication {
    public static void main(String[] args) {
        //解决redis与elasticsearch的冲突
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(ClassTeacherApplication.class, args);
    }
}
